package ooday01;
/**
 * 练习
 * @author ${pxl}
 */

public class Car {
    String brand;
    String color;
    double price;

    public Car(){

    }
    Car(String brand,String color,double price){
        this.brand=brand;
        this.color=color;
        this.price=price;
        System.out.println("这有辆"+brand+"的"+color+"的"+price+"元的车");
    }
    void start(){
        System.out.println(brand+"的"+color+price+"元的车启动了");
    }
    void run(){
        System.out.println(brand+"的"+color+price+"元的车跑起来了");
    }
    void stop(){
        System.out.println(brand+"的"+color+price+"元的车停下来了");
    }

}
